<?php

namespace app\model\questionnaire;

use app\BaseModel;
use think\model\relation\HasMany;

/**
 * 问卷-类型
 */
class QuestionnaireTypeModel extends BaseModel
{
    protected $name = 'questionnaire_type';

    /**
     * 问卷
     * @return HasMany
     */
    public function paper(): HasMany
    {
        return $this->hasMany(QuestionnairePaperModel::class, 'type_id');
    }
}